package com.aaa.rent.service.impl;

import com.aaa.rent.dao.ReturnCarDao;
import com.aaa.rent.service.ReturnCarService;
import com.aaa.vo.Result;
import com.aaa.vo.ReturnCarVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author 崔灿
 * @Date 2023/03/14 18:42
 * @ClassName ReturnCarServiceImpl
 * @Description
 * @Version 1.0
 */

@Service
public class ReturnCarServiceImpl implements ReturnCarService {

   @Autowired
   private ReturnCarDao returnCarDao;

    @Override
    public Result selectCar(Integer id,Integer status) {
        List<ReturnCarVo> seturnCarVo = returnCarDao.selectCar(id,status);

        return new Result(2000,"查询用户已租车辆成功",seturnCarVo);
    }

    @Override
    public Result returncar(Integer id) {
        return null;
    }

}